<?php
namespace app\admin\controller;
use think\Validate;
use think\Loader;
use think\Controller;
use think\Db;
//use app\admin\controller\Base;
use app\admin\model\Product;
use app\admin\model\Insurance_products as Insurance_productsModel; //改名，否则会有两个Admin类，报错

class Test extends Controller{
public function index()
    {
        //查询所有每篇文章下的评论内容且分页
      $article_list = Product::with('insurance_products')->order('bid DESC')->field('id,bid,pid,pname');
      print_r($article_list);
    }
}